package com.daogu.fuelcard.dao;

import com.daogu.fuelcard.entity.RequestRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface RequestRecordMapper {

    void insert(RequestRecord requestRecord);

    void deletedById(@Param("id") Integer id);

    void updateWriteOffAmount(@Param("id") Integer id,@Param("writeOffAmount") BigDecimal writeOffAmount);

    List<RequestRecord> selectAll();

    RequestRecord selectById(@Param("id") Integer id);

}
